<body>
<?php include 'header.phtml';?>
</div>
<div id="OpportunityEditAndDetailsView" class="AppContent SecuredEditAndDetailsView EditAndDetailsView DetailsView ModelView ConfigurableMetadataView MetadataView">
	<div class="wrapper">
		<h1>
			<span class="truncated-title">
				<span class="ellipsis-content">Opportunity</span>
			</span>
		</h1>
		<div class="wide form">
			<form onSubmit="js:return $(this).attachLoadingOnSubmit(&quot;edit-form&quot;)" id="edit-form" action="<?php echo $this->basePath();?>/opportunity/add" method="post">
<div style="display:none"><input type="hidden" value="d5512c4ccb9b15ef3d7d2f43adf4c8ac6d3282ea" name="YII_CSRF_TOKEN" /></div>
		
							<table class="form-fields">
								<colgroup>
									<col class="col-0" />
									<col class="col-1" />
								</colgroup>
								<tbody>
								<?php
									$form = $this->form;
									$form->setAttribute('action', $this->url(
     									'leads',
     									array(
         									'action' => 'edit',
         									'id'     => $this->id,
     									)
 									));
									$form->prepare();
									echo $this->form()->openTag($form);
									echo $this->formHidden($form->get('id'));
									?>
						<tr>
							<th>
								<label for="Opportunity_name" class="required">Name 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
							<?php
								echo $this->formElement($form->get('name'));
							?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_amount_currency" class="required">Amount Currency 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('amount_currency_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_amount_value" class="required">Amount Value 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('amount_value'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_account_id">Account
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('account_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_closeDate" class="required">Close Date 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<div class="has-date-select">
									<?php
										echo $this->formElement($form->get('closedate'));
									?>
								</div>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_stage_value" class="required">Stage 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
									<?php
										echo $this->formElement($form->get('stage_id'));
									?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_probability" class="required">Probability 
									<span class="required">*</span>
								</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('probability'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_source_value">Source</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('source_id'));
								?>
							</td>
						</tr>
						<tr>
							<th>
								<label for="Opportunity_description">Description</label>
							</th>
							<td colspan="1">
								<?php
									echo $this->formElement($form->get('description'));
								?>
							</td>
						</tr>
						<tr>
							<th>
							</th>
							<td>
								<?php  echo $this->formSubmit($form->get('submit'));?>
								<a id="CancelLinkActionElement--20-yt3" class="cancel-button" href="<?php echo $this->basePath();?>/opportunity/index"><span class="z-label">Cancel</span></a>
							</td>
						</tr>
				<?php echo $this->form()->closeTag();?>
					</tbody>
				</table>
			
<div id="modalContainer-edit-form">
</div>
</div>
</div>
</div>
<div id="FlashMessageView">
	<div id = "FlashMessageBar"></div>
</div>
</div>
<div id="ModalContainerView">
	<div id="modalContainer"></div>
</div>
<div id="ModalGameNotificationContainerView"></div>
<div id="GameCoinContainerView"></div>
<div id="FooterView">
	<a href="http://www.zurmo.com" id="credit-link" class="clearfix">
		<span>Copyright &#169; Zurmo Inc., 2013. All rights reserved.</span>
	</a>
	<div class="ui-chooser">
		<a class="icon-mobile" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Mobile">
			<span>Show Mobile</span>
		</a>
		<a class="icon-desktop active" href="/zurmo/app/index.php/zurmo/default/userInterface?userInterface=Desktop">
			<span>Show Full</span>
		</a>
	</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
</script>
</body></html>